﻿<UserControl
    x:Class="RuneMasterWin8.Views.ToolItemInGame"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:RuneMasterWin8.Views"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Height="60"
    Width="60">
    <UserControl.Resources>
        <Storyboard x:Name="StoryboardClick">
            <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)" Storyboard.TargetName="rectangle">
                <EasingColorKeyFrame KeyTime="0" Value="#FF292929"/>
                <EasingColorKeyFrame KeyTime="0:0:0.1" Value="Yellow">
                    <EasingColorKeyFrame.EasingFunction>
                        <PowerEase EasingMode="EaseInOut"/>
                    </EasingColorKeyFrame.EasingFunction>
                </EasingColorKeyFrame>
                <EasingColorKeyFrame KeyTime="0:0:0.4" Value="#FF292929"/>
            </ColorAnimationUsingKeyFrames>
        </Storyboard>
    </UserControl.Resources>
    <Grid>
        <Image x:Name="imgTool" Source="ms-appx:///Images/Tools/add500.png" Stretch="Fill"/>
        <Rectangle x:Name="rectangle" HorizontalAlignment="Left" Height="60" VerticalAlignment="Top" Width="60" RadiusY="3" RadiusX="3" StrokeThickness="3" Margin="0,0,-11,-11" Stroke="#FF292929"/>
        <Grid x:Name="grid" HorizontalAlignment="Right" VerticalAlignment="Bottom" IsHitTestVisible="False">
            <Ellipse HorizontalAlignment="Left" Height="20" VerticalAlignment="Top" Width="20" Fill="Black" Stroke="White"/>
            <TextBlock x:Name="txtCount" Margin="0" TextWrapping="Wrap" Text="3" VerticalAlignment="Center" Foreground="White" FontSize="13.333" FontFamily="Arial" TextAlignment="Center"/>

        </Grid>
    </Grid>
</UserControl>
